﻿<UserControl x:Class="CartoonViewer.UC_DownloadPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Cartoon="clr-namespace:CartoonViewer"
             Background="Transparent"
 >
    
    <Grid> 
        
        <Grid.RowDefinitions>
            <RowDefinition Height="30" ></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Orientation="Horizontal" >
            <Button x:Name="BtnStart" Margin="4 4 2 4" Click="BtnStart_Click" Background="Transparent" BorderThickness="0"  Focusable="False">开始</Button>
            <Button x:Name="BtnSuspend" Margin="2 4 2 4" Click="BtnSuspend_Click" Background="Transparent" BorderThickness="0"  Focusable="False">暂停</Button> 
            <Button x:Name="BtnStop" Margin="2 4 2 4" Click="BtnStop_Click" Background="Transparent" BorderThickness="0"  Focusable="False">取消</Button>
        </StackPanel>
        
        <StackPanel Grid.Column="0" Grid.Row="1" CanVerticallyScroll="True" Orientation="Vertical" >

            <TextBlock Text="正在下载 (0)" x:Name="TxtDownloading" Margin="10 10 0 0" Foreground="Blue" Padding="1" MouseLeftButtonUp="TxtDownloading_MouseLeftButtonUp"></TextBlock>
            <TextBlock Text="已完成 (0)" Visibility="Hidden" x:Name="TxtDownloaded"  Margin="10 2" Foreground="Blue" Padding="1" MouseLeftButtonUp="TxtDownloaded_MouseLeftButtonUp"></TextBlock>
             
        </StackPanel>

         
        <Cartoon:UC_DownloadListPanel Grid.Column="1" Grid.Row="1" Margin="0 10 0 0"
           x:Name="LvDownloading" Background="Transparent">
            
        </Cartoon:UC_DownloadListPanel> 
        
    </Grid>
</UserControl>
